package com.iqiu.cms.entity;

import com.ibeetl.admin.core.entity.BaseEntity;
import com.ibeetl.admin.core.util.ValidateConfig;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.LogicDelete;
import org.beetl.sql.core.annotatoin.SeqID;

import javax.validation.constraints.NotNull;
import java.util.Date;


/* 
* 
* gen by Spring Boot2 Admin 2019-03-21
*/
public class CoreDevice extends BaseEntity{

    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @SeqID(name = ORACLE_CORE_SEQ_NAME)
    @AutoID	

    private Integer id ;
	
    //设备名称

    private String dname ;
    private String comName;
	
    //设备型号

    private String unitType ;
	
    //设备号

    private String code ;
	
    //设备证书

    private String img ;
	

    private Date createTime ;
	

    private Integer createUser ;
	
	/*逻辑删除标志*/
	@InsertIgnore
	@LogicDelete(value = 1)

    private Integer delFlag ;
    private Integer comId ;
    //检定有限期
    private Date deadline ;
    private Integer imgid ;
    public Integer getImgid() {
        return imgid;
    }
    public void setImgid(Integer imgid) {
        this.imgid = imgid;
    }
    public CoreDevice()
    {
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public Integer getId(){
	    return  id;
    }
    public void setId(Integer id){
        this.id = id;
    }

    /**设备名称
    *@return 
    */
    public String getDname(){
	    return  dname;
    }
    /**设备名称
    *@param  dname
    */
    public void setDname(String dname){
        this.dname = dname;
    }

    /**设备型号
    *@return 
    */
    public String getUnitType(){
	    return  unitType;
    }
    /**设备型号
    *@param  unitType
    */
    public void setUnitType(String unitType){
        this.unitType = unitType;
    }

    /**设备号
    *@return 
    */
    public String getCode(){
	    return  code;
    }
    /**设备号
    *@param  code
    */
    public void setCode(String code){
        this.code = code;
    }

    /**设备证书
    *@return 
    */
    public String getImg(){
	    return  img;
    }
    /**设备证书
    *@param  img
    */
    public void setImg(String img){
        this.img = img;
    }

    public Date getCreateTime(){
	    return  createTime;
    }
    public void setCreateTime(Date createTime){
        this.createTime = createTime;
    }

    public Integer getCreateUser(){
	    return  createUser;
    }
    public void setCreateUser(Integer createUser){
        this.createUser = createUser;
    }

    public Integer getDelFlag(){
	    return  delFlag;
    }
    public void setDelFlag(Integer delFlag){
        this.delFlag = delFlag;
    }

    public Integer getComId(){
	    return  comId;
    }
    public void setComId(Integer comId){
        this.comId = comId;
    }

    /**检定有限期
    *@return 
    */
    public Date getDeadline(){
	    return  deadline;
    }
    /**检定有限期
    *@param  deadline
    */
    public void setDeadline(Date deadline){
        this.deadline = deadline;
    }


}
